<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Set the LOB retrieve mode for a FrontBase result set</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.fbsql-set-lob-mode" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">fbsql_set_lob_mode</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.2.0, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">fbsql_set_lob_mode</span> &mdash; <span class="dc-title">Set the LOB retrieve mode for a FrontBase result set</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.fbsql-set-lob-mode-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>fbsql_set_lob_mode</strong></span>
    ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$result</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$lob_mode</code></span>
   ) : <span class="type">bool</span></div>

  <p class="para rdfs-comment">
   Sets the mode for retrieving LOB data from the database.
  </p>
  <p class="para">
   When BLOB and CLOB data is retrieved in FrontBase it can be retrieved 
   direct or indirect.  Direct retrieved LOB data will always be fetched no
   matter the setting of the lob mode. If the LOB data is less than 512 bytes
   it will always be retrieved directly.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.fbsql-set-lob-mode-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    <dt>
<code class="parameter">
result</code></dt>
<dd>
<p class="para">由 <span class="function"><a href="fbsql_query.html" class="function">fbsql_query()</a></span>
或 <span class="function"><a href="fbsql_db_query.html" class="function">fbsql_db_query()</a></span> 返回的结果标识符。</p></dd>

    
     <dt>
<code class="parameter">lob_mode</code></dt>

     <dd>

      <p class="para">
       Can be one of:
       <ul class="itemizedlist">
        <li class="listitem">
         <span class="simpara">
          <strong><code>FBSQL_LOB_DIRECT</code></strong> - LOB data is retrieved
          directly. When data is fetched from the database with
          <span class="function"><a href="fbsql_fetch_row.html" class="function">fbsql_fetch_row()</a></span>, and other fetch functions,
          all CLOB and BLOB columns will be returned as ordinary columns.
          This is the default value on a new FrontBase result.
         </span>
        </li>
        <li class="listitem">
         <span class="simpara">
          <strong><code>FBSQL_LOB_HANDLE</code></strong> - LOB data is retrieved as
          handles to the data.  When data is fetched from the database with
          <span class="function"><a href="fbsql_fetch_row.html" class="function">fbsql_fetch_row()</a></span>, and other fetch functions,
          LOB data will be returned as a handle to the data if the data is
          stored indirect or the data if it is stored direct.  If a handle
          is returned it will be a 27 byte string formatted as 
          <em>@&#039;000000000000000000000000&#039;</em>.
         </span>
        </li>
       </ul>
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.fbsql-set-lob-mode-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   成功时返回 <strong><code>TRUE</code></strong>， 或者在失败时返回 <strong><code>FALSE</code></strong>。
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.fbsql-set-lob-mode-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="fbsql_create_blob.html" class="function" rel="rdfs-seeAlso">fbsql_create_blob()</a> - Create a BLOB</span></li>
    <li class="member"><span class="function"><a href="fbsql_create_clob.html" class="function" rel="rdfs-seeAlso">fbsql_create_clob()</a> - Create a CLOB</span></li>
    <li class="member"><span class="function"><a href="fbsql_read_blob.html" class="function" rel="rdfs-seeAlso">fbsql_read_blob()</a> - Read a BLOB from the database</span></li>
    <li class="member"><span class="function"><a href="fbsql_read_clob.html" class="function" rel="rdfs-seeAlso">fbsql_read_clob()</a> - Read a CLOB from the database</span></li>
   </ul>
  </p>
 </div>


</div></div></div></body></html>